{extend name="base"/}
{block name="resources"}
<link rel="stylesheet" type="text/css" href="INDEX_CSS/about.css"/>
{/block}
{block name="main"}
<div class="ns-banner">
	<img src="INDEX_IMG/banner.png" />
	<div class="ns-banner-desc">
		<h1>轻松开启小程序店铺</h1>
		<h4>免费 / 安全 / 专业 / 便捷</h4>
		<a href="javascript:freeOpenShop()" class="layui-btn ns-bg-color">免费开店</a>
	</div>
</div>
<!-- 关于我们 -->
<div class="ns-about">
	<div class="ns-content-title">
		<h2>关于我们</h2>
	</div>
	<div class="ns-content-box about_content">我们旨在为商家提供在微信开店、管店等一站式小程序解决方案。通过便捷的开店解决方案帮助商家接入小程序以及微信，将影响力转化为生意，让生意无处不在，触手可及。</div>
</div>

<!-- 联系我们 -->
<div class="contact">
	<div class="ns-content-title">
		<h2>联系我们</h2>
	</div>
	<div class="ns-content-box ns-contact_content">
		<div>电话：{$website_info.web_phone}</div>
		<div>邮箱：{$website_info.web_email}</div>
		<img src="{:img($website_info.web_qrcode)}">
		<div>扫一扫关注公众号</div>
	</div>
</div>

{/block}
{block name="script"}
<script id="openShop" type="text/html">
	<div class="free-open-shop">
		<span>请联系官方客服，联系方式如下：</span>
		{if $website_info.web_phone}
		<span>电话联系：{$website_info.web_phone}</span>
		{/if}
		{if $website_info.web_qq}
		<span> QQ联系：{$website_info.web_qq}</span>
		{/if}
		{if $website_info.web_weixin}
		<span>微信联系：{$website_info.web_weixin}</span>
		{/if}
		{if $website_info.web_email}
		<span>邮箱联系：{$website_info.web_email}</span>
		{/if}
	</div>
</script>

<script>
	var businessType = "{$business_type}";

	//免费开店
	function freeOpenShop() {
		if (businessType == 3) {
			location.href = ns.url("home/index/index");
		} else {
			layer.open({
				type: 1,
				title: "免费开店",
				content: $("#openShop").html(),
				area: ['450px', 'auto']
			});
		}
	}
</script>
{/block}
